/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-10-09 09:30:59
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-10-09 10:28:01
 * @FilePath: \cxl-admin\src\apis\company\admin.ts
 */
import axios from '../../axios/index'

export interface adminParams {
    current: number
    size: number
    companyId?: string
    phone?: string
    status?: number
}

export const adminList = (params: adminParams) => {
    return axios({
        method: 'get',
        url: '/api/system/admin/company-admin-list',
        params
    })
}

export const adminDelete = (id: string) => {
    return axios({
        method: 'post',
        url: '/api/system/admin/delete',
        data: { id }
    })
}

export const adminEnable = (status: number, id: string) => {
    return axios({
        method: 'post',
        url: '/api/system/admin/enable',
        data: { status, id }
    })
}
